<div class="block-item-container">  <div class="blockPreview" #blockPreview [class.error]="hasError"></div>
  @if (hasError && showError) {
    <div class="error-message">
      <i class="error-icon">⚠️</i>
      <span>{{ error }}</span>
    </div>
  }
</div>